package com.cgt.xiaotao.oss.client;

import com.cgt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "service-oss")
public interface OssFileClient {
    
    /**
     * 文件上传
     */
    @PostMapping("/oss/file/upload")
    R<String> upload(@RequestParam("file") MultipartFile file);
}
